package com.esc.mapper;

import com.esc.model.Buyer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BuyerMapper {
    int deleteByPrimaryKey(Integer buyerid);

    int insert(Buyer record);

    int insertSelective(Buyer record);

    Buyer selectByPrimaryKey(Integer buyerid);

    int updateByPrimaryKeySelective(Buyer record);

    int updateByPrimaryKey(Buyer record);

    int queryCount(@Param("queryId") Integer queryId);

    List<Buyer> queryBuyerList(@Param("start") int startIndex, @Param("size") int rows,@Param("queryId")Integer queryId);

    void updateBuyerStauts(@Param("buyerid") Integer buyerid,@Param("sid") Integer status);

    Buyer queryBuyerById(@Param("buyerid") Integer buyerid);

    void updateBuyer(Buyer buyer);
}